package com.chookss.video;

import android.content.Context;
import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

import com.chookss.R;
import com.lvgroup.hospital.base.BaseAct;

import org.jetbrains.annotations.Nullable;

import butterknife.BindView;

public class VideoBaseActivity extends BaseAct implements VideoMainFragments.OnFragmentInteractionListener{

    @BindView(R.id.fragment_container)
    FrameLayout fragment_container;
    @BindView(R.id.llTop)
    LinearLayout llTop;
    private Context mContext;
    private int index=2;//2推荐列表  1小视频列表

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video_base);
        mContext = this;
//        initState();
        index=getIntent().getIntExtra("index",2);
    }

    @Override
    public void initData() {
        getSupportFragmentManager()    //
                .beginTransaction()
                .add(R.id.fragment_container,new VideoMainFragments(1,index))
                .commit();
    }

    @Override
    public void onFragmentInteraction(int index) {

    }
}
